<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'oferta-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Los campos con <span class="required">*</span> son obligatorios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'titulo'); ?>
		<?php echo $form->textField($model,'titulo'); ?>
		<?php echo $form->error($model,'titulo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'descripcion'); ?>
		<?php echo $form->textField($model,'descripcion'); ?>
		<?php echo $form->error($model,'descripcion'); ?>
	</div>

	<div class="row">
		<div class="row">
		<?php echo $form->labelEx($model,'foto'); ?>
		<?php echo CHtml::activeFileField($model, 'foto'); ?>
                <?php echo $form->error($model,'foto'); ?>
	</div>
	</div>

        <?php echo CHtml::activeHiddenField($model, 'id_bar',array('value'=>$_GET['id_bar'])); ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->